package smartcase.errors;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class BaseException extends RuntimeException {
  private String requestId;
  private String meg;
  private String code;
  private String subCode;

  public BaseException(String requestId, String meg, String code, String subCode) {
    this.requestId = requestId;
    this.meg = meg;
    this.code = code;
    this.subCode = subCode;
  }

  public BaseException(String s) {
    super(s);
  }
}
